<script setup lang="ts">
interface Props {
  info: AppSysSpare.Dto;
}

const props = withDefaults(defineProps<Props>(), {
  info: () => {
    return {};
  },
});
</script>

<template>
  <view class="app-spare-item">
    <view class="app-spare-item--left">
      {{ props.info.spareName || '-' }}({{ props.info.spareCode || '-' }})
    </view>
    <view class="app-spare-item--right">
      <text>选择</text>
    </view>
  </view>
</template>

<style lang="scss">
@import './index.scss';
</style>
